package de.gameduell.net.src.communication {
	import flash.events.Event;
	
	/**
	 * @author GD
	 */
	public class SyncEvent extends Event {

		public static const RECEIVE:String = "receive";
		public static const ACK:String 	   = "ack";
		public static const OUT_OF_ORDER_ACK:String = "ofoack";
		
		private var _messageId:int;
		private var _attachedMessages:Boolean;
		
		public function SyncEvent(type:String, aMessageId:int, aAttachedMessages:Boolean = false, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_messageId 		  = aMessageId;
			_attachedMessages = aAttachedMessages;
		}
		
		public function get messageId():int{
			return _messageId;
		}
		
		public function get attachedMessages():Boolean{
			return _attachedMessages;
		}
		
	}
}
